package com.vgulu.server.common.rest;

import com.mongodb.client.result.DeleteResult;
import com.vgulu.server.common.mongodb.MongoDataFactory;

/**
 * Created by wangchunsee on 2017/6/21.
 */
public interface ResourceApi<T> {
    T get(String db,String id);
    T create(String db,T bean);
    void update(String db,String id,T bean);
    DeleteResult remove(String db, String id);
    String getCol();
    MongoDataFactory<T> getDataFactory();
}
